        <link rel="stylesheet" type="text/css" href="<?php echo base_url()?>/public/assets/css/lesson.css">
        
        <div class="weui_msg">
        <div class="weui_icon_area"><i class="weui_icon_success weui_icon_msg"></i></div>
        <div class="weui_text_area">
            <h2 class="weui_msg_title">确认下课成功！</h2>
        </div>
        
        <div class="weui_opr_area">
            <p class="weui_btn_area">
                <a href="javascript:void(0);" class="weui_btn weui_btn_plain_primary" id="teacherCommand">对这节课备注</a>
            </p>
            <p class="weui_btn_area">
                <a href="/tcourserecord" class="weui_btn weui_btn_plain_primary">返回</a>
            </p>
        </div>
        <div class="weui_dialog_confirm" style="display: none;">
            <div class="weui_mask"></div>
            <div class="weui_dialog">
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell">
                        <div class="weui_cell_bd weui_cell_primary">
                            <textarea class="weui_textarea" id="nr" onkeyup="tjzs()" placeholder="对这节课添加备注" rows="3"></textarea>
                            <div class="weui_textarea_counter"><span id="evaluate_num">0</span>/100</div>
                        </div>
                    </div>
                </div>
                <div class="weui_dialog_ft">
                    <a href="javascript:$('.weui_dialog_confirm').hide();" class="weui_btn_dialog default">取消</a>
                    <a href="javascript:;" class="weui_btn_dialog primary" id="queding">确定</a>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        $(document).ready(function(){
            $("#teacherCommand").bind("click",function(){
                $(".weui_dialog_confirm").show();
            });
            
            $("#queding").bind("click",function(){
                var $content = $('.weui_textarea').val();
                if(typeof($content) == "undefined" || $content == ''){
                    alert('请输入备注');
                    return false;
                }
                
                window.location.href="/tcourserecord/evaluate?book_id=<?php echo $book_id?>&message="+$content;
            });
        });
        
        function tjzs(){
            var evaluate_num = 100;//字数限制
        	var count = $("#nr").val().length; 
        	if(count > evaluate_num){ 
        	var nr = $("#nr").val().substring(0,evaluate_num); 
            	$("#nr").val(nr); 
            	count = evaluate_num; 
        	} 
        	$("#evaluate_num").html(count); 
        }
    </script>
